<template>
  <header>
    <div class="return">
      <slot name="left"></slot>
    </div>
    <div class="title">
      <slot name="center"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </header>
</template>
<script>
// 1.定义组件
export default {
  name: "compDetHeader",
};
</script>
<style lang="scss" scoped>
header {
  z-index: 1000;
  width: 100%;
  height: 60px;
  background: #fff;
  align-items: center;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  font-size: 20px;
  .return {
    flex-basis: 20%;
    height: 60px;
    line-height: 60px;
    font-size: 26px;
    text-align: center;
  }
  .title {
    flex-basis: 60%;
    height: 60px;
    text-align: center;
    line-height: 60px;
  }
  .right {
    flex-basis: 20%;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 26px;
    .iconfont {
      font-size: 26px;
    }
  }
}
</style>